all: DC USER PROXY SCHED AGENT
DC: CloudMachinesManager.h CloudMachinesManager.cpp DaemonController.cpp DaemonController.h TcpService.h TcpService.cpp main.cpp ServerCommon.h SchedCommon.h
	g++ -Wall CloudMachinesManager.cpp DaemonController.cpp TcpService.cpp main.cpp -lpthread -g -o DC
	cp DC tmp/
USER: UserService.h UserService.cpp user.cpp ServerCommon.h
	g++ -Wall UserService.h UserService.cpp TcpService.cpp user.cpp -g -o USER
	cp USER tmp/
PROXY: NodeProxy.cpp TcpService.h TcpService.cpp ServerCommon.h
	g++ -Wall NodeProxy.cpp TcpService.cpp -o PROXY -g -lpthread
	cp PROXY tmp/
SCHED: SchedCommon.h SchedService.h SchedService.cpp sched.cpp
	g++ -Wall SchedService.cpp sched.cpp -g -o SCHED
	cp SCHED tmp/
AGENT: AgentCommon.h AgentService.h AgentService.cpp TcpService.h TcpService.cpp agent.cpp
	g++ -Wall AgentService.cpp TcpService.cpp agent.cpp -g -o AGENT
	cp AGENT tmp/
clean:
	rm -f DC USER PROXY SCHED AGENT tmp/DC tmp/USER tmp/PROXY tmp/SCHED tmp/AGENT
